package com.itheima.Demo4;

public class Test4Inner {
    public static void main(String[] args) {
        Outer o = new Outer();
        o.method();
    }
}

class Outer{
    int num =10;
    public void method(){
        int a =111;
        class Inner{
            public void show(){
                System.out.println("局部内部类");
                System.out.println(a);
                System.out.println(num);
            }
        }
        Inner i = new Inner();
        i.show();
    }
}
